package pwd.allen;

import java.awt.*;
public class Wall {

	int x,y,w,h;
	TankClient tc;

	public Wall(int x, int y, int w, int h, TankClient tc) {
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		this.tc = tc;
	}

	public void draw(Graphics g){
		Color color=g.getColor();
		g.setColor(new Color(160,82,45));
		g.fillRect(x, y,w,h);
		g.setColor(color);
	}
	public Rectangle getRect(){
		return new Rectangle(x,y,w,h);
	}
}
